package fr.unice.poo.modele;
import java.sql.*;

public class ConnectionFactory {
	static {
		try {
			Class.forName("org.sqlite.JDBC");
		}

		catch (ClassNotFoundException e) {
			e.printStackTrace();
		}

	}
	public Connection getConnection(){
		try {
			return DriverManager.getConnection("jdbc:sqlite:cookies.sqlite");
		}
		catch (SQLException e){
			e.printStackTrace();
		}
		return null;
		
	}
}
